//
//  HMPraiseModel.m
//  HowToDo
//
//  Created by 宋轩 on 17/1/8.
//  Copyright © 2017年 KY. All rights reserved.
//

#import "HMPraiseModel.h"

@implementation HMPraiseModel

//@property(copy,nonatomic)NSString *item_title;
//@property(copy,nonatomic)NSString *add_time;
//@property(copy,nonatomic)NSString *like_count;
//@property(copy,nonatomic)NSString *item_image_url;
//@property(copy,nonatomic)NSString *item_introduce;
//@property(copy,nonatomic)NSString *read_count;
//coding方法
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.item_title forKey:@"title"];
    [aCoder encodeObject:self.add_time forKey:@"time"];
    [aCoder encodeObject:self.like_count forKey:@"likeCount"];
    [aCoder encodeObject:self.item_image_url forKey:@"image"];
    [aCoder encodeObject:self.item_introduce forKey:@"introduce"];
    [aCoder encodeObject:self.read_count forKey:@"readCount"];
}

- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super init];
    if (self) {
        self.item_title = [coder decodeObjectForKey:@"title"];
        self.add_time = [coder decodeObjectForKey:@"time"];
        self.like_count = [coder decodeObjectForKey:@"likeCount"];
        self.item_image_url = [coder decodeObjectForKey:@"image"];
        self.item_introduce = [coder decodeObjectForKey:@"introduce"];
        self.read_count = [coder decodeObjectForKey:@"readCount"];
    }
    return self;
}


@end
